package ooday04;

public class Fish extends Animal implements Swim {//继承Animal超类，承接Swim接口
    Fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println(color+"色的鱼"+name+age+"岁了,他在吃鱼粮。。。。");
    }
    public void swim(){
        System.out.println(color+"色的鱼"+name+age+"岁了,他在游泳。。。。");
    }
}
